<h1>Gradebook</h1>
<table>
	<tr>
		<th>Title</th>
		<th>Date</th>
		<th>Grade</th>
	</tr>
<% for exam in @exams %>
	<tr>
		<td><%=h exam.exam.title %></td>
		<td><%=h exam.time %></td>
		<td><%=h get_grade(exam) %></td>
		<td><%= link_to 'show', :action => 'show', :id => exam.id %></td>
	</tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @exam_pages.current.previous } if @exam_pages.current.previous %>
<%= link_to 'Next page', { :page => @exam_pages.current.next } if @exam_pages.current.next %> 
